<?php
/*
# $Id: class.tpl 21 2006-12-14 15:46:30Z james $
*/
?>

<h1><?php echo $class->name; ?></h1>

<p class="classDesc">
</p>

<h2>Constants</h2>
<ul class="constants">
<?php foreach($constants as $const): ?>
	<li>
		<h1><?php echo '<span class="scope_'.$const->scope.'">'.$const->scope.'</span> <span class="type">'.$const->type.'</span> $'.$const->name.' = '.$const->value; ?></h1>
		<p>
			<?php echo $const->comment===NULL ? '<span class="comment-null">No comments.</span>' : nl2br(htmlspecialchars($const->comment)); ?>
		</p>
	</li>
<?php endforeach; ?>
</ul>

<h2>Properties</h2>
<ul class="properties">
<?php foreach($properties as $prop): ?>
	<li>
		<h1><?php echo ($prop->isStatic ? 'static ' : '').'<span class="scope_'.$prop->scope.'">'.$prop->scope.'</span> <span class="type">'.$prop->type.'</span> $'.$prop->name; ?></h1>
		<p>
			<?php echo $prop->comment===NULL ? '<span class="comment-null">No comments.</span>' : nl2br(htmlspecialchars($prop->comment)); ?>
		</p>
	</li>
<?php endforeach; ?>
</ul>

<h2>Methods</h2>
<ul class="methods">
<?php foreach($methods as $method): ?>
	<li class="<?php if($method->isDeprecated) echo "deprecated"; ?>">
		<h1><?php echo ($method->isStatic ? 'static ' : '').'<span class="type">'.$method->type.'</span> '.$method->name.'( '.$method->parameterString.' )'; ?></h1>

		<?php if(count($method->parameters)>0): ?>
			<ul class="method_args">
			<?php foreach($method->parameters as $arg): ?>
				<li>
					<h1><?php echo '<span class="type">'.$arg->type.'</span> $'.$arg->name; ?></h1>
					<p>
						<?php echo $arg->comment===NULL ? '<span class="comment-null">No comments.</span>' : htmlspecialchars($arg->comment); ?>
					</p>
				</li>
			<?php endforeach; ?>
			</ul>
		<?php endif; ?>
		<p>
			<?php echo $method->comment===NULL ? '<span class="comment-null">No comments.</span>' : nl2br(htmlspecialchars($method->comment)); ?>
		</p>
	</li>
<?php endforeach; ?>
</ul>